home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16116 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  777 b 

  1. Path: sloth.swcp.com!usenet
  2. From: dvines@sparton.com (Dudley Vines)
  3. Newsgroups: comp.lang.c++
  4. Subject: word vs. byte alignment option
  5. Date: 9 Apr 1996 13:52:43 GMT
  6. Organization: Sparton Technology, Inc
  7. Message-ID: <4kdq3b$lhn@sloth.swcp.com>
  8. NNTP-Posting-Host: ppp51.swcp.com
  9. Mime-Version: 1.0
  10. X-Newsreader: WinVN 0.93.10
  11.  
  12. Anybody ever have trouble with Borland C++ compiler word vs. byte 
  13. alignment option?  When I attempt to load a word aligned array into a byte 
  14. aligned array, the data in the byte aligned array is off by one byte.
  15.  
  16. The arrays come from separate modules with different alignement options 
  17. set.
  18.  
  19. I thought the alignment option only affected speed or memory usage...why 
  20. doesn't the compiler figure out how to handle the data right?
  21.  
  22. e-mail help, please...
  23.  
  24.